package com.wx.qrcode.common;

/**
 * @author yz
 */

public enum ResultEnum {

    /**
     * 成功
     */
    SUCCESS(200, "success"),
    /**
     * 退出成功
     */
    OUT_SUCCESS(201, "退出成功"),

    /**
     * 失败
     */
    ERROR(500, "服务器异常"),

    /**
     * system服务错误
     */
    ACCESS_TOKEN_IS_EMPTY(3001, "access token获取为空！");



    private final Integer code;

    private final String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
